package com.night.icm.persistence.core.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * JwtToken
 *
 * @author Liao ZhiYong
 * @date 2019/12/10
 */
@ApiModel(description = "登录成功后，返回的数据类")
@Data
public class JwtToken {

    @ApiModelProperty(position = 100, value = "用户id", required = true, accessMode = ApiModelProperty.AccessMode.READ_ONLY)
    private String userId;

    @ApiModelProperty(position = 100, value = "用户姓名", required = true, accessMode = ApiModelProperty.AccessMode.READ_ONLY)
    private String userName;

    @ApiModelProperty(position = 105, value = "用户角色权限", required = true, accessMode = ApiModelProperty.AccessMode.READ_ONLY)
    private String userRole;

    @ApiModelProperty(position = 110, value = "令牌生成时间", required = true, accessMode = ApiModelProperty.AccessMode.READ_ONLY, example = "2018-12-31 23:59:59")
    private String issued;

    @ApiModelProperty(position = 120, value = "令牌失效时间", required = true, accessMode = ApiModelProperty.AccessMode.READ_ONLY, example = "2018-12-31 23:59:59")
    private String expires;

    @ApiModelProperty(position = 130, value = "令牌", required = true, accessMode = ApiModelProperty.AccessMode.READ_ONLY)
    private String token;
}